﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace T2._3._2用户登录.Controllers
{
    public class DefaultController : Controller
    {
        // GET: Default
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Login()
        {
            var name = Request["username"];
            var pwd = Request["userpwd"];
            ViewBag.name = name;
            ViewBag.pwd = pwd;
            return View();
        }
    }
}